package com.tiantian.judge.domain.entity;

import com.tiantian.common.core.domain.model.BaseEntity;
import com.tiantian.common.core.validate.AddGroup;
import jakarta.validation.constraints.Null;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * (Judger)实体类
 *
 * @author tiantian
 * @since 2023-10-20 17:22:29
 */

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Judger extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -93789646270713752L;

    /**
     * 主键
     */
    @Null(message = "参数错误", groups = AddGroup.class)
    private String judgerId;

    /**
     * 判题人的ID (user_id)
     */
    private Long userId;

    /**
     * 判踢人的姓名
     */
    @Null(message = "参数错误", groups = AddGroup.class)
    private String judgerName;

    /**
     * 判题状态( 0:未完成 1:进行中 2全部:已完成 3:未知状态)
     */
    @Null(message = "参数错误", groups = AddGroup.class)
    private String status;

    /**
     * 删除标记 ("0":未删除 "1":已删除)
     */
    @Null(message = "参数错误", groups = AddGroup.class)
    private String delFlag;

}

